package com.jianbing.zuixia.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.jianbing.zuixia.mapper.ZuixiaPersonalAnswerRouteMapper;
import com.jianbing.zuixia.domain.ZuixiaPersonalAnswerRoute;
import com.jianbing.zuixia.service.IZuixiaPersonalAnswerRouteService;

/**
 * 个人答题路线，记录用户每天的答题路线Service业务层处理
 * 
 * @author windbless
 * @date 2024-06-18
 */
@Service
public class ZuixiaPersonalAnswerRouteServiceImpl implements IZuixiaPersonalAnswerRouteService 
{
    @Autowired
    private ZuixiaPersonalAnswerRouteMapper zuixiaPersonalAnswerRouteMapper;

    /**
     * 查询个人答题路线，记录用户每天的答题路线
     * 
     * @param routeId 个人答题路线，记录用户每天的答题路线主键
     * @return 个人答题路线，记录用户每天的答题路线
     */
    @Override
    public ZuixiaPersonalAnswerRoute selectZuixiaPersonalAnswerRouteByRouteId(Long routeId)
    {
        return zuixiaPersonalAnswerRouteMapper.selectZuixiaPersonalAnswerRouteByRouteId(routeId);
    }

    /**
     * 查询个人答题路线，记录用户每天的答题路线列表
     * 
     * @param zuixiaPersonalAnswerRoute 个人答题路线，记录用户每天的答题路线
     * @return 个人答题路线，记录用户每天的答题路线
     */
    @Override
    public List<ZuixiaPersonalAnswerRoute> selectZuixiaPersonalAnswerRouteList(ZuixiaPersonalAnswerRoute zuixiaPersonalAnswerRoute)
    {
        return zuixiaPersonalAnswerRouteMapper.selectZuixiaPersonalAnswerRouteList(zuixiaPersonalAnswerRoute);
    }

    /**
     * 新增个人答题路线，记录用户每天的答题路线
     * 
     * @param zuixiaPersonalAnswerRoute 个人答题路线，记录用户每天的答题路线
     * @return 结果
     */
    @Override
    public int insertZuixiaPersonalAnswerRoute(ZuixiaPersonalAnswerRoute zuixiaPersonalAnswerRoute)
    {
        return zuixiaPersonalAnswerRouteMapper.insertZuixiaPersonalAnswerRoute(zuixiaPersonalAnswerRoute);
    }

    /**
     * 修改个人答题路线，记录用户每天的答题路线
     * 
     * @param zuixiaPersonalAnswerRoute 个人答题路线，记录用户每天的答题路线
     * @return 结果
     */
    @Override
    public int updateZuixiaPersonalAnswerRoute(ZuixiaPersonalAnswerRoute zuixiaPersonalAnswerRoute)
    {
        return zuixiaPersonalAnswerRouteMapper.updateZuixiaPersonalAnswerRoute(zuixiaPersonalAnswerRoute);
    }

    /**
     * 批量删除个人答题路线，记录用户每天的答题路线
     * 
     * @param routeIds 需要删除的个人答题路线，记录用户每天的答题路线主键
     * @return 结果
     */
    @Override
    public int deleteZuixiaPersonalAnswerRouteByRouteIds(Long[] routeIds)
    {
        return zuixiaPersonalAnswerRouteMapper.deleteZuixiaPersonalAnswerRouteByRouteIds(routeIds);
    }

    /**
     * 删除个人答题路线，记录用户每天的答题路线信息
     * 
     * @param routeId 个人答题路线，记录用户每天的答题路线主键
     * @return 结果
     */
    @Override
    public int deleteZuixiaPersonalAnswerRouteByRouteId(Long routeId)
    {
        return zuixiaPersonalAnswerRouteMapper.deleteZuixiaPersonalAnswerRouteByRouteId(routeId);
    }
}
